package com.haikesi.api.device.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @ClassName DeviceControlVO
 * @Author HandsomeBugs
 * @Date 2019/5/23 9:05
 * @Version 1.0
 **/

@Data
@EqualsAndHashCode(callSuper = false)
public class DeviceControlVO {
    @ApiModelProperty(value = "订阅账号")
    @NotNull(message = "订阅账号不能为空")
    private String account;
    @ApiModelProperty(value = "设备序列号【设备序列号和mac 地址一样时可以传序列号 不管mac地址（准备遗弃）】")
    private String serial_num;
    @ApiModelProperty(value = "设备Mac地址（替代序列号,设备的mac地址）")
    private String serial_mac;
    @ApiModelProperty(value = "操作名")
    @NotNull(message = "操作名不能为空")
    private String operation;
    @ApiModelProperty(value = "操作参数")
    @NotNull(message = "操作参数不能为空")
    private String controlParams;
    @ApiModelProperty(value = "产品编号（code）")
    @NotNull(message = "产品编号不能为空")
    private String productId;

}
